package com.xyapi.xyapiclientsdk;

import com.xyapi.xyapiclientsdk.client.XyApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * xyApi 客户端配置
 *

 */
@Configuration
@ConfigurationProperties("xyapi.client")
@Data
@ComponentScan
public class XyApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public XyApiClient xyApiClient() {
        return new XyApiClient(accessKey, secretKey);
    }

}
